
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>04-ES6 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="05-webpack.html" />
    
    
    <link rel="prev" href="03-react-component.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    编辑器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../editortools/SublineText3-Quick-Key.html">
            
                <a href="../editortools/SublineText3-Quick-Key.html">
            
                    
                    SublineText3快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../editortools/SublineText3.html">
            
                <a href="../editortools/SublineText3.html">
            
                    
                    SublineText3问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../editortools/iTerm2-guide.html">
            
                <a href="../editortools/iTerm2-guide.html">
            
                    
                    iTerm2指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../">
            
                <a href="../">
            
                    
                    乱七八糟
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../sundry/git-note.html">
            
                <a href="../sundry/git-note.html">
            
                    
                    Git 简单笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../sundry/gitbook-doc.html">
            
                <a href="../sundry/gitbook-doc.html">
            
                    
                    gitbook 教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../sundry/gitbook-to-github.html">
            
                <a href="../sundry/gitbook-to-github.html">
            
                    
                    gitbook 集成到Github
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../sundry/git-integrate.html">
            
                <a href="../sundry/git-integrate.html">
            
                    
                    Git提速
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../sundry/markdown-doc.html">
            
                <a href="../sundry/markdown-doc.html">
            
                    
                    markdown 语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../sundry/maven-nexus.html">
            
                <a href="../sundry/maven-nexus.html">
            
                    
                    Maven 私服搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../sundry/idea-config.html">
            
                <a href="../sundry/idea-config.html">
            
                    
                    IDEA 配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../sundry/idea-quick-key.html">
            
                <a href="../sundry/idea-quick-key.html">
            
                    
                    IDEA 快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../sundry/iterm2.html">
            
                <a href="../sundry/iterm2.html">
            
                    
                    iTerm2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" >
            
                <a target="_blank" href="http://fontawesome.dashgame.com/">
            
                    
                    Font Awesome字体
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../">
            
                <a href="../">
            
                    
                    mariadb
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../mariadb/mariadb-install.html">
            
                <a href="../mariadb/mariadb-install.html">
            
                    
                    mariadb 安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../mariadb/mysql-install.html">
            
                <a href="../mariadb/mysql-install.html">
            
                    
                    mysql 安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../mariadb/mysql-base.html">
            
                <a href="../mariadb/mysql-base.html">
            
                    
                    mysql 基础知识
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../">
            
                <a href="../">
            
                    
                    MongoDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../mongodb/mongodb-install.html">
            
                <a href="../mongodb/mongodb-install.html">
            
                    
                    MongoDB 安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../">
            
                <a href="../">
            
                    
                    nginx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../nginx/nginx-install.html">
            
                <a href="../nginx/nginx-install.html">
            
                    
                    Nginx 安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../nginx/nginx-commandline.html">
            
                <a href="../nginx/nginx-commandline.html">
            
                    
                    Ngixn 命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../nginx/nginx-virtualhost.html">
            
                <a href="../nginx/nginx-virtualhost.html">
            
                    
                    Nginx 虚拟主机
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../">
            
                <a href="../">
            
                    
                    HttpClient
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../httpclient/httpclient-timeout.html">
            
                <a href="../httpclient/httpclient-timeout.html">
            
                    
                    HttpClient几个超时
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../httpclient/httpclient-pool.html">
            
                <a href="../httpclient/httpclient-pool.html">
            
                    
                    HttpClient 连接池
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../">
            
                <a href="../">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../java/001-tomcat-loader-cpu-high.html">
            
                <a href="../java/001-tomcat-loader-cpu-high.html">
            
                    
                    01-Tomcat应用负载过高—CPU过高
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../">
            
                <a href="../">
            
                    
                    Spring与SpringBoot
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../SpringBoot/001-SpringBoot-form-jar-to-war.html">
            
                <a href="../SpringBoot/001-SpringBoot-form-jar-to-war.html">
            
                    
                    01-SpringBoot-Jar包转war包
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../">
            
                <a href="../">
            
                    
                    RPC
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../rpc/thrift/thrift-01-intro.html">
            
                <a href="../rpc/thrift/thrift-01-intro.html">
            
                    
                    01-Thrift简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../rpc/thrift/thrift-02-install.html">
            
                <a href="../rpc/thrift/thrift-02-install.html">
            
                    
                    02-Thrift安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../rpc/thrift/thrift-03-types.html">
            
                <a href="../rpc/thrift/thrift-03-types.html">
            
                    
                    03-Thrift数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../rpc/thrift/thrift-04-generated-code.html">
            
                <a href="../rpc/thrift/thrift-04-generated-code.html">
            
                    
                    04-Thrift代码生成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../rpc/thrift/thrift-05-architecture.html">
            
                <a href="../rpc/thrift/thrift-05-architecture.html">
            
                    
                    05-Thrift架构设计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../">
            
                <a href="../">
            
                    
                    线程世界
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../thread/01-traditional-thread.html">
            
                <a href="../thread/01-traditional-thread.html">
            
                    
                    01-传统线程技术
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../thread/02-traditional-mutex.html">
            
                <a href="../thread/02-traditional-mutex.html">
            
                    
                    02-线程之间的互斥
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../thread/03-traditional-communication.html">
            
                <a href="../thread/03-traditional-communication.html">
            
                    
                    03-线程之间的通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../thread/04-traditional-thread-state.html">
            
                <a href="../thread/04-traditional-thread-state.html">
            
                    
                    04-线程状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../thread/05-traditional-thread-join.html">
            
                <a href="../thread/05-traditional-thread-join.html">
            
                    
                    05-线程join方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../">
            
                <a href="../">
            
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../linux/001-linux-command.html">
            
                <a href="../linux/001-linux-command.html">
            
                    
                    01-Linux常用命令总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../linux/002-linux-firewall.html">
            
                <a href="../linux/002-linux-firewall.html">
            
                    
                    02-Linux防火墙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../linux/003-linux-tmux.html">
            
                <a href="../linux/003-linux-tmux.html">
            
                    
                    03-Linux-Tmux
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../">
            
                <a href="../">
            
                    
                    数据结构与算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../datastructure/01-intro.html">
            
                <a href="../datastructure/01-intro.html">
            
                    
                    01-简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../">
            
                <a href="../">
            
                    
                    前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="01-yarn.html">
            
                <a href="01-yarn.html">
            
                    
                    01-yarn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="02-jsx.html">
            
                <a href="02-jsx.html">
            
                    
                    02-jsx语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="03-react-component.html">
            
                <a href="03-react-component.html">
            
                    
                    03-React组件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.14.4" data-path="04-ES6.html">
            
                <a href="04-ES6.html">
            
                    
                    04-ES6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="05-webpack.html">
            
                <a href="05-webpack.html">
            
                    
                    05-webpack
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >04-ES6</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="es-6">ES 6</h1>
<h3 id="1-let--const">1. let &amp;&amp; const</h3>
<p>let &#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#xFF0C;const &#x5B9A;&#x4E49;&#x5E38;&#x91CF;<br>let &#x4E0D;&#x652F;&#x6301;&#x91CD;&#x590D;&#x5B9A;&#x4E49;</p>
<p>let &#x53EA;&#x5728;&#x5757;&#x7EA7;&#x4F5C;&#x7528;&#x57DF;&#x4E2D;&#x8D77;&#x4F5C;&#x7528;</p>
<p>&#x4E0D;&#x80FD;&#x63D0;&#x5347;&#x4F5C;&#x7528;&#x57DF;</p>
<pre><code class="lang-js"><span class="hljs-built_in">console</span>.log(foo);
<span class="hljs-keyword">var</span> foo = <span class="hljs-number">1</span>;

&#x7F16;&#x8BD1;&#x540E;&#x4E3A;&#xFF1A;
<span class="hljs-keyword">var</span> foo;
<span class="hljs-built_in">console</span>.log(foo)
foo = <span class="hljs-number">1</span>
</code></pre>
<p>&#x4F7F;&#x7528; let</p>
<pre><code class="lang-js"><span class="hljs-built_in">console</span>.log(foo);
<span class="hljs-keyword">var</span> foo = <span class="hljs-number">1</span>;

&#x7A0B;&#x5E8F;&#x62A5;&#x9519;&#xFF0C;&#x63D0;&#x793A; foo &#x672A;&#x5B9A;&#x4E49;
</code></pre>
<h3 id="2-&#x7BAD;&#x5934;&#x51FD;&#x6570;">2. &#x7BAD;&#x5934;&#x51FD;&#x6570;</h3>
<p>2.1 &#x53C2;&#x6570; =&gt; &#x8868;&#x8FBE;&#x5F0F;/&#x8BED;&#x53E5;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> val = <span class="hljs-number">2</span>;
<span class="hljs-keyword">let</span> double = x =&gt; <span class="hljs-number">2</span> * x;
<span class="hljs-keyword">let</span> treble = x =&gt; {
    <span class="hljs-keyword">return</span> <span class="hljs-number">3</span> * x;
}
<span class="hljs-built_in">console</span>.log(double(val));
<span class="hljs-built_in">console</span>.log(treble(val));
</code></pre>
<p>2.2 &#x7EE7;&#x627F;&#x5916;&#x5C42;&#x4F5C;&#x7528;&#x57DF;&#xFF0C;&#x6CA1;&#x6709;&#x72EC;&#x7ACB;&#x4F5C;&#x7528;&#x57DF;</p>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> obj {
    commmonFn : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{
        <span class="hljs-built_in">console</span>.log(<span class="hljs-keyword">this</span>);
    },
    arrowFn : () =&gt; {
        <span class="hljs-built_in">console</span>.log(<span class="hljs-keyword">this</span>);
    }
}

obj.commonFn(); <span class="hljs-comment">// this &#x6307;&#x5411; obj &#x5BF9;&#x8C61;,&#x8F93;&#x51FA;&#x662F; obj &#x5BF9;&#x8C61;&#x7684;&#x5185;&#x5BB9;</span>
obj.arrowFn();  <span class="hljs-comment">// arrowFn &#x662F;&#x6CA1;&#x6709;&#x4F5C;&#x7528;&#x57DF;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x5176;&#x4E0E; obj &#x5171;&#x4EAB;&#x4E00;&#x4E2A;&#x4F5C;&#x7528;&#x57DF;&#xFF0C;obj &#x662F; window&#xFF0C;&#x6240;&#x4EE5; arrowFn &#x4E5F;&#x8F93;&#x51FA;&#x662F; window &#x5BF9;&#x8C61;&#x7684;&#x5185;&#x5BB9;</span>
</code></pre>
<p>2.3 &#x4E0D;&#x80FD;&#x7528;&#x4F5C;&#x6784;&#x9020;&#x51FD;&#x6570;   </p>
<pre><code class="lang-js"><span class="hljs-comment">// &#x4E0D;&#x62A5;&#x9519;</span>
<span class="hljs-keyword">let</span> Animal = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{}
<span class="hljs-keyword">let</span> animal = <span class="hljs-keyword">new</span> Animal();

<span class="hljs-comment">// &#x62A5;&#x9519;</span>
<span class="hljs-keyword">let</span> Dog = () =&gt; {}
<span class="hljs-keyword">let</span> dog = <span class="hljs-keyword">new</span> Dog();
</code></pre>
<p>2.4 &#x6CA1;&#x6709; prototype &#x5C5E;&#x6027;  </p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> commonFn = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{}
<span class="hljs-keyword">let</span> arrowFn = () =&gt; {}

<span class="hljs-built_in">console</span>.log(commonFn.prototype);
<span class="hljs-built_in">console</span>.log(arrowFn.prototype);
</code></pre>
<h3 id="3-&#x6A21;&#x677F;&#x5B57;&#x7B26;&#x4E32;">3. &#x6A21;&#x677F;&#x5B57;&#x7B26;&#x4E32;</h3>
<p>3.1 &#x53CD;&#x5F15;&#x53F7;&#x6807;&#x8BC6; ``&#xFF0C;&#x652F;&#x6301;&#x591A;&#x884C;&#x5B57;&#x7B26;&#x4E32;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> str = <span class="hljs-string">`
    &lt;div&gt;
        &lt;h1 class=&quot;title&gt;&gt;123&lt;/h1&gt;
    &lt;/div&gt;
`</span>;
<span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&apos;body&apos;</span>).innerText = str;
</code></pre>
<p>3.2 &#x652F;&#x6301;&#x53D8;&#x91CF;&#x548C;&#x8868;&#x8FBE;&#x5F0F;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> name = <span class="hljs-string">&quot;Javaliu&quot;</span>;
<span class="hljs-keyword">let</span> str = <span class="hljs-string">`
    &lt;div&gt;
        &lt;h1 class=&quot;title&gt;&gt;<span class="hljs-subst">${name}</span>&lt;/h1&gt;
    &lt;/div&gt;
`</span>;
<span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&apos;body&apos;</span>).innerText = str;
</code></pre>
<p>3.3 &#x5D4C;&#x5957;&#x51FD;&#x6570;&#x548C;&#x5FAA;&#x73AF;&#x5D4C;&#x5957;&#x7684;&#x4F7F;&#x7528;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> getName = () =&gt; <span class="hljs-string">&apos;abc&apos;</span>;
<span class="hljs-keyword">let</span> str = <span class="hljs-string">`
    &lt;div&gt;
        &lt;h1 class=&quot;title&gt;&gt;<span class="hljs-subst">${getName()}</span>&lt;/h1&gt;
    &lt;/div&gt;
`</span>;
<span class="hljs-built_in">document</span>.querySelector(<span class="hljs-string">&apos;body&apos;</span>).innerText = str;
</code></pre>
<p>&#x5FAA;&#x73AF;&#x5D4C;&#x5957;&#x7684;&#x4F8B;&#x5B50;</p>
<pre><code class="lang-js">let names = [&apos;javaliu&apos;, &apos;lili&apos;, &apos;lucy&apos;];
let str = `
    &lt;ul&gt;
        ${
            names.map(name =&gt; `&lt;li&gt;Hi, I am ${name}&lt;/li&gt;`).join(&apos;&apos;);
        }
    &lt;/ul&gt;
`;
document.querySelector(&apos;body&apos;).innerText = str;
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="03-react-component.html" class="navigation navigation-prev " aria-label="Previous page: 03-React组件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="05-webpack.html" class="navigation navigation-next " aria-label="Next page: 05-webpack">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"04-ES6","level":"1.14.4","depth":2,"next":{"title":"05-webpack","level":"1.14.5","depth":2,"path":"front/05-webpack.md","ref":"front/05-webpack.md","articles":[]},"previous":{"title":"03-React组件","level":"1.14.3","depth":2,"path":"front/03-react-component.md","ref":"front/03-react-component.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["toggle-chapters"],"pluginsConfig":{"toggle-chapters":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"front/04-ES6.md","mtime":"2019-09-08T13:54:11.874Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-12-17T05:25:43.709Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

